//
//  SecondViewController.m
//  UI12_homework_2
//
//  Created by dllo on 15/11/10.
//  Copyright (c) 2015年 ZKJ. All rights reserved.
//

#import "SecondViewController.h"
#import "ScrollWithCarousel.h"

@interface SecondViewController ()

@end

@implementation SecondViewController

- (void)dealloc {
    [super dealloc];
}

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view.
    self.view.backgroundColor = [UIColor yellowColor];
    self.title = @"第二页";
    
    ScrollWithCarousel *scroll = [[ScrollWithCarousel alloc] initWithFrame:self.view.bounds];
    [scroll setArrayAndDistance:@[@"1.png", @"2.png", @"3.png"] withDistance:50];
    [scroll setTimer:1.0];
    [self.view addSubview:scroll];
    [scroll release];
    
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
